<html>
<head>
		<title>EasyRoads3D v3 Manual</title>
<link rel="stylesheet" type="text/css" href="../style.css" />    
</head>

	<body>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="12"><img src="../images/topLeft.jpg" width="76" height="62"></td>
    <td valign="top" class="style7" style="background:url(../images/topMiddle.jpg);padding-top:16px;padding-left:25px">EasyRoads3D V3 Manual</td>
    <td width="257" align="right"><img src="../images/topRight.jpg" width="257" height="62"></td>
  </tr>
</table>
<table width="93%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
	    <td><a href="ERRoadNetwork.html"><img src="../images/previousTop.jpg" width="97" height="20" border="0"></a></td>
	    <td align="right"><a href="ERRoadType.html"><img src="../images/nextTop.jpg" width="73" height="20" border="0"></a></td>
      </tr>
	  <tr>
	    <td height="35" valign="bottom"><a href="../manualv3.html"><img src="../images/home.jpg" width="130" height="20" border="0"></a></td>
	    <td align="right">&nbsp;</td>
      </tr>
	  <tr>
	    <td colspan="2" class="style1"><p>&nbsp;</p>
	      <p class="header1" style="color:#000">ERConnection<hr>
	      <p class="header2">Description</p>
	      <p>This is the base class for an EasyRoads3D connection/crossing between roads.</p>
	      <p>&nbsp;</p>
	      <p class="header2">Constructors</p>
	      <p>...</p>
	      <p>&nbsp;</p>
	      <p class="header2"><strong>Functions</strong></p>
	      <p>&nbsp;</p>
	      <p class="styleAPI">public bool <span class="styleAPIBold">Destroy</span>()</p>
          <p class="styleAPIText">Removes the connection object</p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public int <span class="styleAPIBold">FindNearestConnectionIndex</span>(Vector3 position)</p>
          <p class="styleAPIText">Returns the nearest connection index to the past Vector3 position</p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public ERConnectionData[] <span class="styleAPIBold">GetConnectionData</span>()</p>
          <p class="styleAPIText">Returns the currently available connection data of the connection object</p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public Vector3 <span class="styleAPIBold">GetLocalConnectionPosition</span>(int&nbsp;connectionIndex)</p>
          <p class="styleAPIText">Returns the local position of   <span class="styleAPIValue">connectionIndex</span></p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public Vector3[] <span class="styleAPIBold">GetLocalConnectionPositions</span>()</p>
          <p class="styleAPIText">Returns the local positions of all the connections of this connection prefab</p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public string <span class="styleAPIBold">GetName</span>()</p>
          <p class="styleAPIText">Returns the name of the connection object</p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public Vector3 <span class="styleAPIBold">GetConnectionWorldPosition</span>(int&nbsp;connectionIndex)</p>
          <p class="styleAPIText">Returns the world position of <span class="styleAPIValue">connectionIndex</span></p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public Vector3[] <span class="styleAPIBold">GetConnectionWorldPositions</span>()</p>
          <p class="styleAPIText">Returns the world positions of all the connections of this connection prefab</p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public void <span class="styleAPIBold">RotateConnections</span>(Vector3 position)</p>
          <p class="styleAPIText"> Rotates the crossing and reconnects the attached roads to the new connections.  Returns false if the operation could not be completed because of different connection types and the currently attached roads</p>
          <p class="styleAPIText">&nbsp;</p>
          <p class="styleAPI">public void <span class="styleAPIBold">SetPosition</span>(Vector3 position)</p>
<p class="styleAPIText">Updates the position of the connection object</p>
<p>&nbsp;</p>
<p class="styleAPI">public void <span class="styleAPIBold">SetName</span>(string name)</p>
<p class="styleAPIText">Updates the name of the connection object</p>
<p class="styleAPIText">&nbsp;</p>
<p class="styleAPI">public void <span class="styleAPIBold">SetRotation(Vector3 euler)</span></p>
<p class="styleAPIText">Updates the eulerAngles rotation of the connection object</p>
<p>&nbsp;</p>
<p class="styleAPI">public void <span class="styleAPIBold">SwapTurn()</span></p>
<p class="styleAPIText">Swaps the turn between the left and right side of the main road, returns false if the operation could not be completed due to a road already being attached</p>
<p>&nbsp;</p>
<p class="styleAPI">public void <strong>UnConnect</strong>(int connectionIndex)</p>
<p><span class="styleAPIText">Removes the connection with the road object at <span class="styleAPIValue">connectionIndex</span>.</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
      </tr>
	  <tr>
	    <td><a href="ERRoadNetwork.html"><img src="../images/previousBtm.jpg" width="89" height="20" border="0"></a></td>
	    <td align="right"><a href="ERRoadType.html"><img src="../images/nextBtm.jpg" width="70" height="20" border="0"></a></td>
      </tr>
    </table>
	<p>&nbsp;</p>
    </body>
	
</html>

